#!/usr/bin/python3

from tkinter import *
from tkinter import ttk
from tkinter import messagebox
from tkinter import filedialog
from tkinter import colorchooser

class App():
    def __init__(self):
        self.root = Tk()
        self.addFrame()

    def addFrame(self):
        self.frame = Frame(self.root)

    def addMenu(self):
        menubar = Menu(self.root)
        #menubar.add_command(label='file')
        #menubar.add_command(label='edit')
        #menubar.add_command(label='view')
        #menubar.add_command(label='tool')
        #menubar.add_command(label='help')
        
        # file menu
        filemenu = Menu(menubar, tearoff=False)
        filemenu.add_command(label='open', command = None)
        filemenu.add_command(label='close', command = None)
        filemenu.add_separator()
        filemenu.add_command(label='exit', command=None)

        menubar.add_cascade(label='file', menu=filemenu)

        # edit menu
        editmenu = Menu(menubar, tearoff=False)
        editmenu.add_command(label='cut', command = None)
        editmenu.add_command(label='copy', command = None)
        editmenu.add_command(label='paste', command=None)

        menubar.add_cascade(label='edit', menu=editmenu)

        


        self.menubar = menubar

    def run(self):
        self.addMenu()
        self.root.config(menu=self.menubar)
        self.root.mainloop()

if __name__ == "__main__":
    app = App()
    app.run()
